package project1;

import java.awt.Dimension;
import java.awt.Frame;

import java.awt.Rectangle;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JSlider;

public class confirmerQuitter
  extends JDialog
{
  private JSlider jSlider1 = new JSlider();
  private JLabel jLabel1 = new JLabel();
  private JLabel jLabel2 = new JLabel();
  private JLabel jLabel3 = new JLabel();

  public confirmerQuitter()
  {
    this(null, "", false);
  }

  public confirmerQuitter(Frame parent, String title, boolean modal)
  {
    super(parent, title, modal);
    try
    {
      jbInit();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }

  private void jbInit()
    throws Exception
  {
    this.setSize( new Dimension( 400, 300 ) );
    this.getContentPane().setLayout( null );
    jSlider1.setBounds(new Rectangle(95, 180, 200, 16));
    jLabel1.setText("Voulez vous vraiment quitter ?");
    jLabel1.setBounds(new Rectangle(120, 55, 150, 75));
    jLabel2.setText("Ouin");
    jLabel2.setBounds(new Rectangle(265, 140, 35, 15));
    jLabel3.setText("Naon");
    jLabel3.setBounds(new Rectangle(85, 135, 34, 14));
    this.getContentPane().add(jLabel3, null);
    this.getContentPane().add(jLabel2, null);
    this.getContentPane().add(jLabel1, null);
    this.getContentPane().add(jSlider1, null);
  }
}
